<div class="modal fade tpv-modal" id="dept-add" data-keyboard="false" data-backdrop="static" tabindex="-1">
    <div class="modal-dialog modal-lg tpv-dept-modal">
        <div class="modal-content">
            <div class="modal-header">
                <h3 class="modal-title pull-left" id="dept-add-modal-title">[[#{dept.add}]]</h3>
                <button type="button" class="close btn-close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <form id="dept-add-form">
                    <div class="row">
                        <div class="input-group">
                            <div class="col-sm-2">
                                <span class="input-group-addon">
                                    [[#{dept.name}]]
                                </span>
                            </div>
                            <div class="col-sm-10">
                                <div class="form-group">
                                    <input type="text" name="deptName" class="form-control">
                                    <input type="text" name="oldDeptName" hidden class="form-control">
                                    <input type="text" name="deptId" hidden class="form-control">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="row" style="max-height: 580px;overflow-y: auto; padding-bottom: 20px;">
                        <div class="col-sm-4">
                            <div class="tpv-group-dept">
                                <span class="input-group-addon">
                                    [[#{dept.parent}]]
                                </span>
                                <div class="input-group tpv-tree-group">
                                    <div class="form-group">
                                        <div id="deptTree"></div>
                                    </div>
                                </div>
                            </div>
                            <input type="hidden" name="parentId">
                        </div>
                        <div class="col-sm-4">
                            <div class="tpv-group-dept">
                                <span class="input-group-addon">
                                    会议室访问控制
                                </span>
                                <div class="input-group tpv-tree-group">
                                    <div class="form-group">
                                        <div id="meetingRoomTree"></div>
                                    </div>
                                    <input type="hidden" name="meetingRoomId">
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-4">
                            <div class="tpv-group-dept">
                                <span class="input-group-addon">
                                    页面访问控制
                                </span>
                                <div class="input-group tpv-tree-group">
                                    <div class="form-group">
                                        <div id="menuTree"></div>
                                    </div>
                                    <input type="hidden" name="menuId">
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-save" id="dept-add-button" name="save">[[#{save}]]</button>
                <button type="button" class="btn btn-secondary btn-close">[[#{close}]]</button>
                <button class="btn-hide"></button>
            </div>
        </div>
    </div>
</div>
<script data-th-src="@{js/app/system/dept/deptAdd.js(t=${version})}"></script>